public class ONEN_TEST_AccountDelete {

	static testmethod void TestIndividualAccountDelete () {
		
		string IndAcctName = ONEN_Constants.INDIVIDUAL_ACCOUNT_NAME;
		Account IndAcct = [SELECT id, Name FROM Account WHERE Name = :IndAcctName LIMIT 1];
		
		string error;
		try {
			delete IndAcct;	
		} catch ( DmlException e ) {
			error = e.getMessage();
			system.debug (error);
		}
		
		System.Assert ( error.contains('Individual') );
	}

}